home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
011
/
utildos2.arc
/
CGCLOCK.DOC
< prev
next >
Wrap
Text File
|
2018-02-16
|
4KB
|
89 lines
;------------------------------------------------------------------------
; source available from DAN OBRIEN upon request via message on GENE PLANTZ's
; PC-BBS in CHICAGO, IL.
;------------------------------------------------------------------------
; cgclock.asm - real time clock display for color/graphics
; display. adapted from clock.asm found on one of
; the PC-BBS in Chicago. Allows any color for time
; by patching color value using DEBUG. Look for
; "Color value of time display="
; and set byte follow "=" to BASIC color value.
; Currently set to YELLOW (color number is 14 decimal).
;
; Displays time in human form not computer, i.e.,
; 24 hour military time.
;
; To enable military (24 hour) time display patch
; using DEBUG the statement that says
; "Military time=N"
; from "N" to "Y".
;
; Also beeps the speaker every quarter hour.
;
; To disable beeping on the quarter hours patch
; using DEBUG the statement that says
; "Beep=Y"
; from "Y" to "N".
;
; Timer display is refreshed every N tics as defined
; by a patchable area using DEBUG. Look for
; "Timer tics before time display refresh="
; and the value after the "=" is binary 4. Patch to higher or
; lower value as you wish to lengthen or shorten interval
; between refreshes. Tics occur 18.5 times a second,
; and after 4 (default) the display is refreshed with the time.
; This keeps overhead of running cgclock to about 4 percent.
;
; To start cgclock just enter "cgclock".
; To toggle off and on enter "cgclock" repeatedly.
;
; NOTE:
; 1. Uses user timer exit int 1Ch for timer display
; 2. Defines int 60h to toggle time off and on.
; 3. Displays time without annoying "snow"!
; Technique from PC-Tech Journal Premier Issue.
; 4. Developed under DOS 2.0. Not tested under DOS 1.1
; but should work.
;
; adapted from clock.asm by DANIEL M. O'BRIEN - 9 July 83 (Version 1.0)
;
; 1) meaningful labels added
; 2) made to work on color/graphics
; 3) use user timer exit int 1ch instead of 08h directly - slows down
; disk drives, also allows BASIC to gain direct control of timer.
; And use int 60h instead of 44h (44h defined by DOS 2.0)!
; 4) allow patching of time display color using DEBUG (Version 1.1)
; 5) meaningful comments added
; 6) include salutation
;
; DMO - 10 July 83 (Version 1.2)
; 7) beep on quarter hour and allow patching off
; 8) 12 hour clock with AM and PM indicator and allow patch for military time
;
; DMO - 21 July 83 (Version 1.3)
; 9) keep counter and update screen only after specified tics count.
; currently set to 4 which yields an overhead of about 4 percent.
; if set to 1, i.e., update every clock tic, then cgclock has a
; overhead of about 20 percent.
;
; DMO - 31 July 83 (Version 1.4)
; 10) move some temporary data areas below init routine for less
; resident space requirements.
;
; DMO - 12 Sept 83 (Version 1.5)
; 11) try different algorithm to stuff display into memory to reduce
; possible interference with BASIC display to terminal
; 12) fix bug whereby BX was not being saved and restored when BEEP occured
; 13) fix bug whereby direction flag not set causing stray characters on
; display
; 14) speedup entry and exit when not time to display
;
; FUTURE work
; 1) date
; 2) alarm clock
; 3) any suggestions?
;---------------------------------------------------------------
65399 '** DONE - PRESS ENTER TO RETURN TO MENU **
tions?
;---------------------------------------------------------